package com.sgb.kjwl.view.ui.adapter.self;


import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.view.ui.adapter.self.publish.GasStationImageAdapter;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class GasImageAdapter extends BaseRecycleAdapter<String> {

    public GasImageAdapter(Context context,  List<String> datas) {
        super(context, R.layout.item_image_station_publish, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, String s) {
        holder.setBinding(BR.viewModel, s);
        ImageView img = holder.itemView.findViewById(R.id.photo_img);
        holder.itemView.findViewById(R.id.delete_tv).setVisibility(View.GONE);
        Glide.with(context).load(s).into(img);

    }
}
